<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>数组</title>
		<script>
			//js中的类似java中的数组，集合，map
			//也提供了Set,map
			var a=new Array(5);
			var b=["合肥","安庆","六安","淮北","淮南","阜阳",2,3,5,6,71];
			a[0]="dog";
			a[1]="pig";
			a[100]="tiger";
			alert(a.length);//101
			var str=a.join("$");
			alert(str);
			a.length=2;
			alert(a.join("#"));
		</script>
	</head>
	<body>
	</body>
</html>